package cn.cai.pethome.shop.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import cn.cai.pethome.base.domain.BaseDomain;
import cn.cai.pethome.emp.domain.Employee;
import com.sun.corba.se.spi.orb.ParserImplBase;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaocai
 * @since 2022-08-27
 */
@Data
@ExcelTarget("Shop")
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;

    @Excel(name = "店铺名称")
    private String name;
    @Excel(name = "座机号码")
    private String tel;
    @Excel(name = "店铺地址")
    private String address;
    @Excel(name = "logot图片")
    private String logo;

    private Date registerTime = new Date();//时间
    //状态：0待审核 1审核通过待激活 2已激活 3驳回 4拒绝
    private Integer state = 0;

    private Long adminId;// 列名称：admin_id => setAdmin_id()

    @ExcelEntity  //关联的内部的对象
    private Employee admin;

    public Long getAdmin_id() {
        return adminId;
    }

    public void setAdmin_id(Long admin_id) {
        this.adminId = admin_id;
    }

    public Shop() {
    }

    public Shop(String name, String tel, String address, String logo, Employee admin) {
        this.name = name;
        this.tel = tel;
        this.address = address;
        this.logo = logo;
        this.admin = admin;
    }
}
